const path = require('path');

// path.join() 将 多个路径参数 拼接成完成路径
// console.log(path.join('/a', '/b','c', 'd'));

console.log(path.resolve('/a', '/b','/c', 'd'));